package joaomarceloos.paintapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
	
	private Button btnCreateGroup, btnEnterGroup;

	private OnClickListener createGroupListener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			Intent i = new Intent(MainActivity.this, CreateGroupActivity.class);
			startActivity(i);
		}
	};
	
	private OnClickListener enterGroupListener = new OnClickListener() {
		@Override
		public void onClick(View v) {
			Intent i = new Intent(MainActivity.this, CreateParticipantActivity.class);
			startActivity(i);
		}
	};
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		btnCreateGroup = (Button)(findViewById(R.id.btnCreateGroup));
		btnCreateGroup.setOnClickListener(createGroupListener);
		
		btnEnterGroup = (Button)(findViewById(R.id.btnEnterGroup));
		btnEnterGroup.setOnClickListener(enterGroupListener);
		
	}

}
